package com.grt.common.convert.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

import com.grt.admin.domain.Case;
import com.grt.admin.domain.dto.CaseDTO;
import com.grt.common.convert.DOConvertDTO;

@Component
public class CaseDOConvertDTO implements DOConvertDTO<Case, CaseDTO> {

	@Override
	public CaseDTO convert(Case oCase) {
		CaseDTO oCaseDTO = new CaseDTO();
		BeanUtils.copyProperties(oCase, oCaseDTO);
		return oCaseDTO;
	}

}
